package com.sjgl.esdn.mapper;

import com.sjgl.esdn.domain.entity.Label;
import com.sjgl.esdn.domain.entity.Question;
import com.sjgl.esdn.domain.entity.User;
import com.sjgl.esdn.domain.entity.uc.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户 数据层
 *
 * @author Administrator
 * @date 2022/08/01
 */
@Mapper
@Repository
@Component
public interface LabelMapper {

    /**
     * 获得标签列表
     *
     * @return {@code List<Label>}
     */
    List<Label> getLabelList();

    /**
     * 插入标签
     *
     * @param label 标签
     * @return int
     */
    int insertLabel(@Param("label") Label label);
}
